package br.com.linkcom.sined.controller.simple;

import org.springframework.web.servlet.ModelAndView;

import br.com.linkcom.neo.bean.annotation.Bean;
import br.com.linkcom.neo.controller.Controller;
import br.com.linkcom.neo.controller.DefaultAction;
import br.com.linkcom.neo.controller.MultiActionController;
import br.com.linkcom.neo.core.web.WebRequestContext;

@Bean
@Controller(path = {"/sistema/index"})
public class Index extends MultiActionController {
	
	@DefaultAction
	public ModelAndView index(WebRequestContext request){
		/*if (tipoUsuario.equals(SinedUtil.ASSOCIADO)) {
			return new ModelAndView("redirect:/areaassociado/index"); 
		}else if (tipoUsuario.equals(SinedUtil.SINDICALIZADO)){
			return new ModelAndView("redirect:/areasindicalizado/index"); 
		}else {
			return new ModelAndView("index");
		}*/	
		return new ModelAndView("index");
	}	
}